// Copyright (c) 2009 Luca Marrocco.
// Modified or written by Luca Marrocco for inclusion with codej.
// Licensed under the Apache License, Version 2.0 (the "License")
package codej.ast;

import codej.ast.*;

/** @author Luca Marrocco */
public class Try extends Statement {

	private Catches catches;
	private Block finallyBlock;

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public Try setCatches(Catches catches) {
		this.catches = catches;

		return this;
	}

	public Try setFinallyBlock(Block finallyBlock) {
		this.finallyBlock = finallyBlock;

		return this;
	}
}